<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
            
            $conne=mysql_connect("localhost","root");
            mysql_select_db("ShoppingCart",$conne);
            $result=mysql_query("SELECT * FROM products WHERE name=\"".$_GET["su"]."\"",$conne);
            $row=mysql_fetch_array($result);
            echo "<img src=\"".$row[thumbnail]."\" width=\"500\" height=\"300\">";
            echo "</br>";
            echo "<font size=\"7\" color=\"Pink\" face=\"Calibri\">".$row[name]."</font>";
            echo "</br>";
            echo "<font size=\"5\" color=\"gray\" face=\"Trebuchet MS\">".$row[longdescription]."</font>";
            echo "</br>";
            echo "<font size=\"5\" color=\"gray\" face=\"Trebuchet MS\"> PRICE: Rs.".$row[price]."</font>";
            echo "</br>";
            
            echo "<form action=\"index.php?path=".$row["path"]."\" method=\"post\">";
            echo "<div>";
            echo "<select name=\"quantity\">
                  <option value=1>1</option>
                  <option value=2>2</option>
                  <option value=3>3</option>
                  <option value=4>4</option>
                </select>";
            echo "<input type=\"hidden\" name=\"id\" value=".$row["id"]."/>";
            echo "  <input type=\"submit\" name=\"action\" value=\"Add to Cart\"/>   ";
            echo "</div>";
            echo "</form>";
            
            mysql_close($conne);


        ?>

    </body>
</html>
